package edu.gduf.decortor;

/**
 * Created by Zhang DaoChuan on 2017/2/18.
 *  橡皮鸭
 */
public class RubberDuck extends Duck{

    public RubberDuck(){
        super();
//        橡皮鸭会吱吱吱叫
        quackBehavior = new Squak();
//        橡皮鸭不会飞
        flyBehavior = new FlyNoWay();
    }

    @Override
    public void display() {
        System.out.println("I am a Rubber toy duck!");
    }
}
